import Vue from 'vue'
import Router from 'vue-router'
// import home from '@/pages/home'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      alias:'/home',
      component: ()=>import('@/pages/home')
    },
    {
      path: '/caculate',
      name: 'caculate',
      component: ()=>import('@/pages/caculate')
    },
    {
      path: '/analysis',
      name: 'analysis',
      component: ()=>import('@/pages/analysis')
    },
    {
      path: '/result',
      name: 'result',
      component: ()=>import('@/pages/result')
    },
    {
      path: '/advert',
      name: 'advert',
      component: ()=>import('@/pages/advert')
    },
    {
      path: '/watsons',
      name: 'watsons',
      component: ()=>import('@/pages/watsons')
    },
    {
      path: '/checkIn',
      name: 'checkIn',
      component: ()=>import('@/pages/checkIn')
    },
    {
      path: '/share',
      name: 'share',
      component: ()=>import('@/pages/share')
    }
  ]
})
